package dao;

import entity.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface UserDao {
    public void insert(User user);

    public void deleteById(Integer id);

    public void update(User user);

    public User selectById1(Integer id);

    public User selectById2(Integer id);

    public List<User> selectAll();

    public User selectByUsernameAndPassword1(User user);

    public Map selectByUsernameAndPassword2(Map map);

    public User selectByUsernameAndPassword3(String username,String password);

    public User selectByUsernameAndPassword4(String username,String password);

    public User selectByUsernameAndPassword5(@Param("username") String username, @Param("password") String password);

    public List<User> selectByCriteria1(User user);

    public List<User> selectByCriteria2(User user);

    public List<User> selectByUsernames(List<String> usernames);


}
